package com.key.win.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.key.win.base.web.PageRequest;
import com.key.win.base.web.PageResult;
import com.key.win.system.model.SysGroup;

import java.util.List;

public interface SysGroupService extends IService<SysGroup> {

    PageResult<SysGroup> findSysGroupByPaged(PageRequest<SysGroup> t);

    List<SysGroup> findSysGroup(SysGroup sysGroup);

    List<SysGroup> findSysGroupByParentId(String parentId);

    List<SysGroup> getGroupTree();

    List<SysGroup> findLeafNode();

    boolean saveOrUpdateGroup(SysGroup sysGroup);

    List<SysGroup> findSysGroupByUserId(String userId);

    boolean deleteById(String id);

    SysGroup getSysGroupFullById(String id);
}
